import ReactDOM from 'react-dom/client'
import App from './App.jsx'
import './index.scss'
import 'lib-flexible'
import {ConfigProvider} from "antd-mobile";
import zhCN from "antd-mobile/es/locales/zh-CN.js";
import {Provider} from 'react-redux'
import store from "@/store/index.js";
(function () {
    const handleMax = function () {
        const html = document.documentElement,
            root = document.querySelector('#root'),
            size = parseFloat(html.style.fontSize);
        root.style.maxWidth = '750px'
        if (size >= 750) {
            html.style.fontSize = '75px'
        }
    }
    handleMax()
    window.addEventListener('resize', handleMax)
})()
ReactDOM.createRoot(document.getElementById('root')).render(
    <ConfigProvider locale={zhCN}>
        <Provider store={store}>
            <App/>
        </Provider>

    </ConfigProvider>,
)
